package com.quick.service.impl;

import com.huaban.analysis.jieba.JiebaSegmenter;
import com.quick.service.CutService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @ClassName CutServiceImpl
 * @Description TODO
 * @Author wangxin332
 * @Date 2018/12/17 上午11:33
 * @Version 1.0
 **/
@Service
public class CutServiceImpl implements CutService {

	@Override
	public String cut(String word) {
		JiebaSegmenter jiebaSegmenter = new JiebaSegmenter();
		return jiebaSegmenter.process(word, JiebaSegmenter.SegMode.SEARCH).toString();
	}
}
